<template>
    <div class="edit-device">
        <index-breadcrumb :breadcrumb-list="breadcrumbList" :isShow="true"></index-breadcrumb>
        <EditBusinessAccountFollow></EditBusinessAccountFollow>
    </div>
</template>

<script>
import EditBusinessAccountFollow from "./includes/EditFollow";

export default {
    name: "EditBusinessAccountFollowMsg",
    components: {
        EditBusinessAccountFollow
    },
    data() {
        return {
            deviceData: null,
            breadcrumbList: [
                {
                    title: "商务客户管理",
                    path: "/businessAccount"
                },
                {
                    title: "跟进记录",
                    path: "/follow"
                },
                {
                    title: "新增编辑跟进记录"
                }
            ]
        };
    },
    activated() {
        const id = this.$route.query.followId;
        let businessAccountId = this.$route.query.businessAccountId;
        this.breadcrumbList[1].query = {
            businessAccountId: businessAccountId
        }
        if (id) {
            this.breadcrumbList[2].title = "编辑跟进记录";
        } else {
            this.breadcrumbList[2].title = "创建跟进记录";
        }
    }
};
</script>

<style lang="sass" scoped>

</style>
